package com.justgame.mq.server.config;

import com.justgame.mq.client.constant.SystemQueueConstant;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.amqp.core.Queue;
/**
 * Rabbit队列配置
 * @author ZhouWeiBo
 * @create 2022/5/30
 */
@Configuration
public class RabbitQueueConfig {

    @Bean
    public Queue userLoginQueue(){ return new Queue(SystemQueueConstant.SYSTEM_USER_LOGIN_QUEUE); }

    @Bean
    public Queue userLogoutQueue(){ return new Queue(SystemQueueConstant.SYSTEM_USER_LOGOUT_QUEUE); }

    @Bean
    public Queue emailAuthQueue(){ return new Queue(SystemQueueConstant.SYSTEM_EMAIL_AUTH_QUEUE); }

    @Bean
    public Queue userRegister(){ return new Queue(SystemQueueConstant.SYSTEM_USER_REGISTER); }

    @Bean
    public Queue sendSmsCode(){ return new Queue(SystemQueueConstant.SMS); }

}
